package com.sinodata.bsm.common.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * CustomView entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "CUSTOM_VIEW")
public class CustomView implements java.io.Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -3100219667176078663L;

    // Fields    
    private Long id;
    private Integer type;
    private Long nodeid;
    private String tabname;
    private String page;
    private Integer orderby;
    private String param;

    // Constructors

    /** default constructor */
    public CustomView() {
    }

    /** minimal constructor */
    public CustomView(Long id) {
        this.id = id;
    }

    /** full constructor */
    public CustomView(Long id, Integer type, Long nodeid, String tabname, String page, Integer orderby, String param) {
        this.id = id;
        this.type = type;
        this.nodeid = nodeid;
        this.tabname = tabname;
        this.page = page;
        this.orderby = orderby;
        this.param = param;
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")
    @SequenceGenerator(name = "sequence", sequenceName = "CUSTOM_VIEW_SEQ")
    @Column(name = "ID", unique = true, nullable = false, precision = 18, scale = 0)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "TYPE", precision = 1, scale = 0)
    public Integer getType() {
        return this.type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Column(name = "NODEID", precision = 18, scale = 0)
    public Long getNodeid() {
        return this.nodeid;
    }

    public void setNodeid(Long nodeid) {
        this.nodeid = nodeid;
    }

    @Column(name = "TABNAME", length = 64)
    public String getTabname() {
        return this.tabname;
    }

    public void setTabname(String tabname) {
        this.tabname = tabname;
    }

    @Column(name = "PAGE", length = 2048)
    public String getPage() {
        return this.page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    @Column(name = "ORDERBY", precision = 9, scale = 0)
    public Integer getOrderby() {
        return this.orderby;
    }

    public void setOrderby(Integer orderby) {
        this.orderby = orderby;
    }

    @Column(name = "PARAM", length = 4000)
    public String getParam() {
        return this.param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    @Override
    public String toString() {
        return "CustomView [id=" + id + ", type=" + type + ", nodeid=" + nodeid + ", tabname=" + tabname + ", page=" + page + ", orderby=" + orderby + ", param=" + param + "]";
    }

}